From: Konrad Rzeszutek Wilk Date: Thu, 19 Mar 2015 00:24:09 +0000 (-0400) Subject: libxc: Fix xc_domain_get_tsc_info to return -1 instead of -Exx. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3557 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=21aa87829b06606692390207781f58edf6286318;p=xen.git libxc: Fix xc_domain_get_tsc_info to return -1 instead of -Exx. We don't need to put fill errno because xc_hypercall_buffer_alloc fills the errno with the appropriate errno values and we just need to pass them up the stack. Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Ian Campbell --- diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c index 845d1d7722..2fed727aac 100644 --- a/tools/libxc/xc_domain.c +++ b/tools/libxc/xc_domain.c @@ -771,7 +771,7 @@ int xc_domain_get_tsc_info(xc_interface *xch, info = xc_hypercall_buffer_alloc(xch, info, sizeof(*info)); if ( info == NULL ) - return -ENOMEM; + return -1; domctl.cmd = XEN_DOMCTL_gettscinfo; domctl.domain = (domid_t)domid;